how to make attribute